package com.thrift.demo;

import org.apache.thrift.TException;

/**
 * Created by lizhenxing on 2017/3/31.
 */
public class HelloServiceImpl implements Hello.Iface {

    @Override
    public void sayHello(String username) throws TException {
        System.out.println("hello, " + username);
    }

    @Override
    public void sayBye(User user) throws TException {
        System.out.println(user.getUsername());
    }

    @Override
    public void sayStudent(Student student) throws TException {
        System.out.println(student.getUsername());
    }
}
